{% load filters %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> 修改文章 </title>
  <meta name="generator" content="editplus" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />

{% include 'admin/editor.html' %}


<style type="text/css">
body{
    font-size: 12px;

}
</style>
<script type="text/javascript">
<!--
var myEditor = null;
function add_post_check(f){
    myEditor.saveHTML(); 
    return true;
}
//-->
</script>
</head>

<body class="yui-skin-sam">
<form method="post" action="/admin/edit_post_post/?post_key={{ post.key }}" onsubmit="return add_post_check(this)">

<p>标题：<input name="title" style="width: 600px" value="{{ post.title }}" /></p>
<p>
<textarea name="content" id="content" cols="50" rows="10">{{ post.content }}</textarea>
</p>
<p>指定发布时间：<input name="add_time_date" style="width: 100px" 
value="{{ post.add_time|date_str }}" /> 
<input name="add_time_time" style="width: 100px" 
value="{{ post.add_time|only_time_str }}" />
格式：2009-11-09 9:23:34(日期时间同时指定才有效)</p>
<p><input type="submit" value="提交" /></P>

<script type="text/javascript">
<!--
    myEditor = rich_editor('content', 800, 350);
//-->
</script>

</form> 
 </body>
</html>
